<template>
	<button><span v-if="!text">确定</span><span v-else>{{text}}</span></button>
</template>
<script>
	export default {
		props: ['text'],
		data: function () {
			return {
				info: {
					text: this.text ? this.text : '确定'
				}
			}
		}
	}
</script>
<style scoped>
	button {
		width: 100%;
		border-radius:5px;
		background-color: green;
		padding: 10px 0;
		border:none;
		color: #FFF;
	}
</style>